import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import '@/assets/css/index.scss'
import '@/assets/css/iconfont.css'
import '@/assets/iconsvg.js'
import './permission.js'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
import store from './store'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {ishasButton} from '@/directive/has.js'
// console.log(import.meta.env);
const app = createApp(App)
ishasButton(app)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(store).use(router).mount('#app')
